<!-- 首页热榜页面的卡片 组件 -->
<template>
  <div id="homeHotListCard">
    <div class="card_box">
      <!-- 左边排名 -->
      <div class="rank_box">
        <span class="rank_number" :style="{color:rankNum<=3?'#ff9607':''}">{{ rankNum }}</span>
      </div>
      <!-- 中间内容 -->
      <div class="content_box">
        <!-- 问题标题 -->
        <router-link :to="'/articlePage/'+list.id" class="content_title_box">{{ list.title }}</router-link>
        <!-- 问题简介 -->
        <router-link :to="'/articlePage/'+list.id" class="content_brief_box">{{ list.content_question }}</router-link>
        <!-- 问题功能 -->
        <div class="content_function_box">
          <!-- 热度显示 -->
          <div class="btn_fire">
            <div style="line-height: 35px;float: left;margin-right: 5px"><img src="../../../assets/fire_btn.png" class="btn_comment_img"></div>
            <span style="float: left;">{{ list.skim_num }} 热度</span>
          </div>
          <!-- 分享按钮 -->
          <div class="btn_analysis">
            <div style="line-height: 37px;float: left;margin-right: 5px"><img src="../../../assets/share_btn.png" class="btn_comment_img"></div>
            <span style="float: left">分享</span>
          </div>
        </div>
      </div>
      <!-- 右边图片 -->
      <router-link :to="'/articlePage/'+list.id"><img :src="require('C:\\project_picture/'+list.img)" class="img_box"></router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'homeHotListCard',
  components: {
  },
  props: ['list', 'rankNum'],
  data () {
    return {
    }
  },
  computed: {
  },
  methods: {
  }
}
</script>

<style scoped>
  /*@import 'xxx.css';*/
  #homeHotListCard{
    height: auto;
    width: 100%;
    display: inline-block;
    border-bottom: 1px solid #f0f2f7;
    padding: 20px 15px 10px 20px;
    animation: flipInX 1s ease-in;
  }

  .card_box{
    width: 100%;
    height: auto;
    display: inline-block;
  }

  .rank_box{
    height: 100%;
    width: 5%;
    float: left;
  }

  .rank_number{
    font-size: 18px;
    color: #999;
    font-weight: 600;
    float: left;
  }

  .content_box{
    height: 100%;
    width: 65%;
    float: left;
  }

  .content_title_box{
    height: 30px;
    width: 100%;
    float: left;
    color: #1a1a1a;
    font-size: 18px;
    text-align: left;
    font-weight: 600;
    overflow: hidden;  /* 隐藏超出的内容 */
  }

  .content_brief_box{
    height: 45px;
    width: 100%;
    float: left;
    color: #444;
    overflow: hidden;  /* 隐藏超出的内容 */
    font-size: 15px;
    text-align: left;
    margin-top: 3px;
  }

  .content_function_box{
    height: 25px;
    width: 100%;
    margin-top: 2px;
  }

  .btn_fire{
    height: 100%;
    width: auto;
    display: inline-block;
    float: left;
    margin-right: 25px;
    line-height: 32px;
    font-size: 14px;
    text-align: center;
    color: #8590a6;
  }

  .btn_analysis{
    height: 100%;
    width: auto;
    display: inline-block;
    float: left;
    margin-right: 25px;
    line-height: 32px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    color: #8590a6;
  }

  .btn_analysis:hover:hover{
    color: #76839b;
  }

  .btn_comment_img{
    height: 15px;
    width: 15px;
  }

  .img_box{
    height: 105px;
    width: 30%;
    float: right;
    background-color: rgba(184, 229, 248, 0.27);
    border-radius: 5px;
    cursor: pointer;
  }
</style>
